//
//  JSAlignmentTestViewController.m
//  JSToolkit
//
//  Created by 정재성 on 2013. 11. 3..
//  Copyright (c) 2013년 정재성. All rights reserved.
//

#import "JSAlignmentTestViewController.h"

#import "UIView+Alignment.h"

@interface JSAlignmentTestViewController ()

@end

@implementation JSAlignmentTestViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (IBAction)leftTop:(id)sender
{
    [self.targetView alignmentTo:UIViewAlignmentLeft|UIViewAlignmentTop];
}

- (IBAction)rightTop:(id)sender
{
    [self.targetView alignmentTo:UIViewAlignmentRight|UIViewAlignmentTop];
}

- (IBAction)leftBottom:(id)sender
{
    [self.targetView alignmentTo:UIViewAlignmentLeft|UIViewAlignmentBottom];
}

- (IBAction)rightBottom:(id)sender
{
    [self.targetView alignmentTo:UIViewAlignmentRight|UIViewAlignmentBottom];
}

- (IBAction)centerHorizontal:(id)sender
{
    [self.targetView alignmentTo:UIViewAlignmentCenterHorizontal];
}

- (IBAction)centerVertical:(id)sender
{
    [self.targetView alignmentTo:UIViewAlignmentCenterVertical];
}

@end
